/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(0deg, #2391d3, #68b3e0);
  color: #fff;
  position: absolute;
  height: 100%;
  width: 100%;

  .progress-console {
    white-space: pre;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-size: @font-size-xs;
    height: 12px;
    margin-bottom: 16px;
  }

  .progress-bar {
    width: 256px;
    height: 4px;
    border: none;
    border-radius: 2px;
    -webkit-appearance: none;
    background-color: fade(#000, 24%);
    background-image: repeating-linear-gradient(
      -45deg,
      fade(#000, 32%),
      fade(#000, 32%) 5px,
      fade(#000, 8%) 4px,
      fade(#000, 8%) 10px
    );
    background-size: 14px 14px;
    animation: move 0.5s linear infinite;
    overflow: hidden;

    > div {
      width: 0;
      height: 100%;
      background-color: #fff;
    }
  }
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 28px 0;
  }
}
